const{override,fixBabelImports,addLessLoader} = require('customize-cra')

// const { injectBabelPlugin } = require('react-app-rewired');

module.exports = override(
    //针对antd实现按需打包：根据import来打包
    fixBabelImports('import',{
        libraryName:'antd',
        libraryDirectory:'es',
        style:'css'  //自动打包相关样式
    }),
    addLessLoader()
    // addLessLoader({
    //     javascriptEnabled:true,
    //     modifyVars:{'@primary-color':'#1DA57A'}
    // })
);
